/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package my_first_programm;
/**
 *
 * @author т
 */
public class My_First_Programm 
{
    public static void main(String[] args) 
    {
        try
        {
            StringBuffer s = new StringBuffer();

            java.io.BufferedReader B = new java.io.BufferedReader (new java.io.InputStreamReader(System.in)); 

            s.append(B.readLine());
            
            int l = s.length();
       
            for(int i=1;i<=l;i++)
            {
                s.append(s.charAt(l-i));
            }
            
            s.delete(0, l);
            
            System.out.println(s);
        }
        catch(java.io.IOException e)    { e.printStackTrace(); }
    }
}
